﻿using System.Net;

namespace NATP2P.UDPNat
{
    /// <summary>
    /// efines a method for intiate session and send data
    /// </summary>
    interface IUDPNatSocket
    {
        IPEndPoint InternalEndPoint { get; }
        IPEndPoint ExternalEndPoint { get; }
        IPEndPoint RemoteEndPoint { get;  }
        bool Connected { get; }
        void Connect();
        void ConnectTo(IPEndPoint RemoteEndPoint);
        void Send(byte[] buffer);
        void Close();
        void Receive();

    }
}
